/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.dao;

import com.legendshop.dao.Dao;
import java.util.List;
import com.legendshop.dao.support.CriteriaQuery;
import com.legendshop.dao.support.PageSupport;
import com.legendshop.oa.dto.ProjectPlanQueryDto;
import com.legendshop.oa.model.ProjectPlan;

/**
 * The Class ProjectPlanDao. Dao接口
 */
public interface ProjectPlanDao extends Dao<ProjectPlan, Long> {
	/**
	 * 根据商城获取列表
	 */
	List<ProjectPlan> getProjectPlan(String shopName);

	/**
	 * 根据Id获取
	 */
	ProjectPlan getProjectPlan(Long id);

	/**
	 * 根据Project和状态获取对应的目标
	 * @param projectId
	 * @param status
	 * @return
	 */
	List<ProjectPlan> getProjectPlan(Long projectId, Integer status);

	/**
	 * 删除
	 */
	int deleteProjectPlan(ProjectPlan projectPlan);

	/**
	 * 保存
	 */
	Long saveProjectPlan(ProjectPlan projectPlan);

	/**
	 * 更新
	 */
	int updateProjectPlan(ProjectPlan projectPlan);

	/**
	 * 查询列表
	 */
	PageSupport getProjectPlan(CriteriaQuery cq);

	PageSupport<ProjectPlan> getProjectPlanByProject(ProjectPlanQueryDto projectPlanQueryDto);


}
